{% extends 'Home/base_mian.html'%}
<!DOCTYPE html>
{% load static %}
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <!--  子模板导入css文件的地方-->
    {% block css %}
    {{block.super}}
    <link rel="stylesheet" href="{% static  'Students/add_student/css/add_student.css'%}">
    {% endblock%}

</head>

<body>

    <!--子模板写内容的部分-->
    {% block content%}


    <div id="alert" class="alert" role="alert">
        学生信息添加成功
    </div>
    <div id="box">

        <h3>添加学生信息</h3>
        <div id="username">
            *学生姓名：<input type="text" class="form-control">
            <div id="username_error"></div>
        </div>

        <div id="sex">
            *学生性别：男<input type="radio" name="sex" checked="checked" value="男">
            女<input type="radio" name="sex" value="女">
        </div>


        <div id="age">
            *学生年龄：<input type="text" class="form-control">
            <div id="age_error"></div>
        </div>


        <div id="phone">
            *学生联系方式：<input type="text" class="form-control">
            <div id="phone_error"></div>
        </div>

        <div id="address">
            *学生家庭地址：<input type="text" class="form-control">
            <div id="address_error"></div>
        </div>

        <div id="class">
            *学生所在班级：<input type="text" class="form-control">
            <div id="class_error"></div>
        </div>

        <div class="button">
            <button type="submit" class="btn btn-primary" onclick="add_student()">注册</button>
            <p style="margin-left: 100px; color: red">注:带*号的必填</p>
        </div>

    </div>

    {%endblock%}








    {% block js%}
    {{block.super}}
    <script src="{% static 'Students/add_student/js/add_student.js' %}"></script>
    {% endblock %}

</body>

</html>